import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const userinfo: AppRouteModule = {
  path: '/userinfo',
  name: 'Userinfo',
  component: LAYOUT,
  redirect: '/userinfo/index',
  meta: {
    hideChildrenInMenu: true,
    icon: 'simple-icons:aboutdotme',
    title: t('routes.dashboard.userinfo'),
    orderNo: 100000,
  },
  children: [
    {
      path: 'index',
      name: 'UserinfoPage',
      component: () => import('@/views/sys/userinfo/index.vue'),
      meta: {
        title: t('routes.dashboard.userinfo'),
        icon: 'simple-icons:userinfodotme',
        hideMenu: true,
      },
    },
  ],
};

export default userinfo;
